'''
if
if...else
if...elif...else

'''

result = input('请输入（y/n）')
if result == 'y':
    print("you are win!")
    print("-" * 30)
else:
    print("you are died")
    print("-" * 30)

# 随机数
import random

ran = random.randint(1, 10)
print(ran)
answer = input("请输入你猜出来的数：")
if int(answer) == ran:
    print("你猜对了")
else:
    print("你猜错了")

